<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**
 * @method static static OptionOne()
 * @method static static OptionTwo()
 * @method static static OptionThree()
 */
final class CustomerLabel extends Enum
{
    const NOT = 0;//未添加标签
    const INTENTION = 1;//意向客户
    const WAIT = 2;//待咨询
    const DISCUSS = 3;//商量
    const CONSIDER = 4;//考虑
    const REIMBURSE = 5;//纠结报销
    const DELETE = 6;//删除
    const NO_MONEY = 7;//没钱
    const CHEATED = 8;//怕被骗
    const SPACE = 9;//空号
    const NOT_ADD_WECHAT = 10;//未添加微信


    public static function getDescription(mixed $value): string
    {
        return match ($value) {
            self::NOT => '未加标签',
            self::INTENTION => '意向客户',
            self::DELETE => '删除',
            self::WAIT => '待咨询',
            self::DISCUSS => '商量',
            self::NO_MONEY => '没钱',
            self::CONSIDER => '考虑',
            self::REIMBURSE => '纠结报销',
            self::CHEATED => '怕被骗',
            self::SPACE => '空号',
            self::NOT_ADD_WECHAT => '未添加微信',
            default => self::getKey($value),
        };
    }
}
